3.3.32 \(\int \frac {x}{(a+b x^2) (c+d x^2)} \, dx\)

Optimal. Leaf size=45 \[ \frac {\log \left (a+b x^2\right )}{2 (b c-a d)}-\frac {\log \left (c+d x^2\right )}{2 (b c-a d)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {444, 36, 31} \begin {gather*} \frac {\log \left (a+b x^2\right )}{2 (b c-a d)}-\frac {\log \left (c+d x^2\right )}{2 (b c-a d)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x/((a + b*x^2)*(c + d*x^2)),x]

[Out]

Log[a + b*x^2]/(2*(b*c - a*d)) - Log[c + d*x^2]/(2*(b*c - a*d))

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 444

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && EqQ[m
- n + 1, 0]

Rubi steps

\begin {align*} \int \frac {x}{\left (a+b x^2\right ) \left (c+d x^2\right )} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{(a+b x) (c+d x)} \, dx,x,x^2\right )\\ &=\frac {b \operatorname {Subst}\left (\int \frac {1}{a+b x} \, dx,x,x^2\right )}{2 (b c-a d)}-\frac {d \operatorname {Subst}\left (\int \frac {1}{c+d x} \, dx,x,x^2\right )}{2 (b c-a d)}\\ &=\frac {\log \left (a+b x^2\right )}{2 (b c-a d)}-\frac {\log \left (c+d x^2\right )}{2 (b c-a d)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 31, normalized size = 0.69 \begin {gather*} \frac {\log \left (a+b x^2\right )-\log \left (c+d x^2\right )}{2 b c-2 a d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x/((a + b*x^2)*(c + d*x^2)),x]

[Out]

(Log[a + b*x^2] - Log[c + d*x^2])/(2*b*c - 2*a*d)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{\left (a+b x^2\right ) \left (c+d x^2\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[x/((a + b*x^2)*(c + d*x^2)),x]

[Out]

IntegrateAlgebraic[x/((a + b*x^2)*(c + d*x^2)), x]

________________________________________________________________________________________

fricas [A]  time = 0.96, size = 31, normalized size = 0.69 \begin {gather*} \frac {\log \left (b x^{2} + a\right ) - \log \left (d x^{2} + c\right )}{2 \, {\left (b c - a d\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(b*x^2+a)/(d*x^2+c),x, algorithm="fricas")

[Out]

1/2*(log(b*x^2 + a) - log(d*x^2 + c))/(b*c - a*d)

________________________________________________________________________________________

giac [A]  time = 0.37, size = 51, normalized size = 1.13 \begin {gather*} \frac {b \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, {\left (b^{2} c - a b d\right )}} - \frac {d \log \left ({\left | d x^{2} + c \right |}\right )}{2 \, {\left (b c d - a d^{2}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(b*x^2+a)/(d*x^2+c),x, algorithm="giac")

[Out]

1/2*b*log(abs(b*x^2 + a))/(b^2*c - a*b*d) - 1/2*d*log(abs(d*x^2 + c))/(b*c*d - a*d^2)

________________________________________________________________________________________

maple [A]  time = 0.01, size = 42, normalized size = 0.93 \begin {gather*} -\frac {\ln \left (b \,x^{2}+a \right )}{2 \left (a d -b c \right )}+\frac {\ln \left (d \,x^{2}+c \right )}{2 a d -2 b c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(b*x^2+a)/(d*x^2+c),x)

[Out]

-1/2/(a*d-b*c)*ln(b*x^2+a)+1/2/(a*d-b*c)*ln(d*x^2+c)

________________________________________________________________________________________

maxima [A]  time = 1.07, size = 41, normalized size = 0.91 \begin {gather*} \frac {\log \left (b x^{2} + a\right )}{2 \, {\left (b c - a d\right )}} - \frac {\log \left (d x^{2} + c\right )}{2 \, {\left (b c - a d\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(b*x^2+a)/(d*x^2+c),x, algorithm="maxima")

[Out]

1/2*log(b*x^2 + a)/(b*c - a*d) - 1/2*log(d*x^2 + c)/(b*c - a*d)

________________________________________________________________________________________

mupad [B]  time = 0.20, size = 148, normalized size = 3.29 \begin {gather*} \frac {2\,\mathrm {atanh}\left (\frac {8\,b^2\,d^2\,x^2}{\left (2\,a\,d-2\,b\,c\right )\,\left (\frac {32\,a\,b^2\,c\,d^2}{4\,a^2\,d^2-8\,a\,b\,c\,d+4\,b^2\,c^2}+\frac {16\,a\,b^2\,d^3\,x^2}{4\,a^2\,d^2-8\,a\,b\,c\,d+4\,b^2\,c^2}+\frac {16\,b^3\,c\,d^2\,x^2}{4\,a^2\,d^2-8\,a\,b\,c\,d+4\,b^2\,c^2}\right )}\right )}{2\,a\,d-2\,b\,c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/((a + b*x^2)*(c + d*x^2)),x)

[Out]

(2*atanh((8*b^2*d^2*x^2)/((2*a*d - 2*b*c)*((32*a*b^2*c*d^2)/(4*a^2*d^2 + 4*b^2*c^2 - 8*a*b*c*d) + (16*a*b^2*d^
3*x^2)/(4*a^2*d^2 + 4*b^2*c^2 - 8*a*b*c*d) + (16*b^3*c*d^2*x^2)/(4*a^2*d^2 + 4*b^2*c^2 - 8*a*b*c*d)))))/(2*a*d
 - 2*b*c)

________________________________________________________________________________________

sympy [B]  time = 0.98, size = 138, normalized size = 3.07 \begin {gather*} \frac {\log {\left (x^{2} + \frac {- \frac {a^{2} d^{2}}{a d - b c} + \frac {2 a b c d}{a d - b c} + a d - \frac {b^{2} c^{2}}{a d - b c} + b c}{2 b d} \right )}}{2 \left (a d - b c\right )} - \frac {\log {\left (x^{2} + \frac {\frac {a^{2} d^{2}}{a d - b c} - \frac {2 a b c d}{a d - b c} + a d + \frac {b^{2} c^{2}}{a d - b c} + b c}{2 b d} \right )}}{2 \left (a d - b c\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(b*x**2+a)/(d*x**2+c),x)

[Out]

log(x**2 + (-a**2*d**2/(a*d - b*c) + 2*a*b*c*d/(a*d - b*c) + a*d - b**2*c**2/(a*d - b*c) + b*c)/(2*b*d))/(2*(a
*d - b*c)) - log(x**2 + (a**2*d**2/(a*d - b*c) - 2*a*b*c*d/(a*d - b*c) + a*d + b**2*c**2/(a*d - b*c) + b*c)/(2
*b*d))/(2*(a*d - b*c))

________________________________________________________________________________________